package ru.niir.goodfil.c1;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("Good")
public class Good
{
    @XStreamAsAttribute
    private String goodCode1C;

    @XStreamAsAttribute
    private String goodDefinition;

    public Good()
    {
    }

    public Good(String goodCode1C, String goodDefinition)
    {
        this.goodCode1C = goodCode1C;
        this.goodDefinition = goodDefinition;
    }

    public String getGoodCode1C()
    {
        return goodCode1C;
    }

    public void setGoodCode1C(String goodCode1C)
    {
        this.goodCode1C = goodCode1C;
    }

    public String getGoodDefinition()
    {
        return goodDefinition;
    }

    public void setGoodDefinition(String goodDefinition)
    {
        this.goodDefinition = goodDefinition;
    }

    @Override
    public String toString()
    {
        return "Good{" +
               "goodCode1C='" + goodCode1C + '\'' +
               ", goodDefinition='" + goodDefinition + '\'' +
               '}';
    }
}
